 /**
 * @desc 通过form的id构建查询参数用于get传参 规避乱码问题
 *
 **/
 function buildReq(formId)
 {
    var params =jQuery("#"+formId).serialize();
    params=decodeURIComponent(params,true); 
    return encodeURI(encodeURI(params));
 }


  function toCustomerField(cataLog,fieldHandler)
  {
       //var index = window.parent.layer.getFrameIndex(window.name);
       var url =base + "/customerFieldMain.do?cataLog="+cataLog+"&fieldHandler="+fieldHandler;
       jQuery.layer({
           type: 2, 
           border: [0], 
           shadeClose: true,
           closeBtn: true,
           title: false,
           shadeClose: true,
           closeBtn: true,
           iframe: {src : url},
           area: ['420px' , '520px'] 
          }); 
 }


function closeWin()
{
  var index = window.parent.layer.getFrameIndex(window.name); //获取当前窗体索引
  window.parent.layer.close(index); //执行关闭
}